package cn.kgc.service.desktop;

import cn.kgc.dao.desktop.TaskDao;
import cn.kgc.pojo.*;
import com.github.pagehelper.Page;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class TaskServiceImpl implements TaskService {
    @Resource
    private TaskDao dd;

    @Override
    public Page<Leaveuser> selLeave(Integer jt_id, String begintime, String name, String state, Integer id) {
        return dd.selLeave(jt_id, begintime, name, state, id);
    }

    @Override
    public int updLeave(Integer id, Integer state) {
        return dd.updLeave(id, state);
    }

    @Override
    public Page<Cars> selCara(String usetime, String name, String state, Integer id) {
        return dd.selCara(usetime, name, state, id);
    }

    @Override
    public int updCar(Integer id, Integer state, String approver) {
        return dd.updCar(id, state, approver);
    }

    @Override
    public Page<Chap> selChapt(String yzTime, String name, String state, Integer id) {
        return dd.selChapt(yzTime, name, state, id);
    }

    @Override
    public int updChapt(Integer id, Integer state,String approver) {
        return dd.updChapt(id, state,approver);
    }

    @Override
    public Page<Meet> selMeet(String ydtime, String name, String state, Integer id) {
        return dd.selMeet(ydtime, name, state, id);
    }

    @Override
    public int updMeet(Integer id, Integer state, String approver) {
        return dd.updMeet(id, state, approver);
    }

    @Override
    public Page<Busin> selBusin(String createTime, String name, String state, Integer id) {
        return dd.selBusin(createTime, name, state, id);
    }

    @Override
    public int updBusin(Integer id, Integer state, String approver) {
        return dd.updBusin(id, state, approver);
    }

    @Override
    public Page<Trre> selTrre(Integer jt_id, String begintime, String name, String state, Integer id) {
        return dd.selTrre(jt_id, begintime, name, state, id);
    }

    @Override
    public int updTrre(Integer id, Integer state, String approver) {
        return dd.updTrre(id, state, approver);
    }
}
